package com.szkingdom.kfit.bank.common.kcbp.helper.settle.config;

import com.szkingdom.kfit.bank.common.kcbp.helper.settle.config.vo.ReturnVo;
import org.junit.Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.RandomAccess;

import static org.junit.Assert.*;

/**
 * @author Lijingyu on 2017/5/10.
 */
public class SettleConfigTest {

    @Test
    public void testGetSaleType() throws Exception {

        String saleType = SettleConfig.getSaleType("WIND","22");
        String saleType1 = SettleConfig.getSaleType("WIND","124");
        String saleType2 = SettleConfig.getSaleType("WIND","125");
        System.out.println(saleType);
        System.out.println(saleType1);
        System.out.println(saleType2);
    }

    @Test
    public void testGetSaleCode() throws Exception {
        ReturnVo returnVo = SettleConfig.getSaleCode("WIND", "0");
        ReturnVo returnVo1 = SettleConfig.getSaleCode("WIND", "1");
        ReturnVo returnVo2 = SettleConfig.getSaleCode("WIND", "2");
        System.out.println(returnVo);
        System.out.println(returnVo1);
        System.out.println(returnVo2);
    }

    @Test
    public void testGetSaleCode1() throws Exception {
         List list = new ArrayList();
        List list1 = new LinkedList();
        Map map = new HashMap();
        map.put("1", "Heoo");
        list.add(map);
        System.out.println(list instanceof RandomAccess);
        System.out.println(list1 instanceof RandomAccess);
    }
}